<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var userZS = {
            //  左边表示对象的属性，右边表示对象的值
            name: "张三",
            gender: "男",
            birthyear: 19920918,
            addr: "老虎坡",
            isMarried:"否",
            salary: function() {
                return 15000;
            }
         }

         for(var objName in userZS){
            console.log(objName);
            console.log(userZS[objName]);
         }
    </script>
</head>
<body>
    
</body>
</html>